import { unstable_cache } from "next/cache";
import { cache as reactCache } from "react";

// reactCache
// 相同的输入 返回相同的结果，不会执行

export const cache = (cb, keyParts, options) => {
  return unstable_cache(reactCache(cb), keyParts, options);
};
